<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>11 - 动画transition </title>
    <script src="../js/vue.min.js"></script>
    <script src="../js/axios.min.js"></script>
    <link rel="stylesheet" href="../css/animate.css">
    <style>
        p {
            width: 300px;
            height: 300px;
            background-color: red;
            margin: 0 auto;
        }


    </style>
</head>
<body>
<div id="app">
    <button @click="flag=!flag">点我</button>

    <transition name="fade"
                enter-active-class="animated fadeInLeft" leave-active-class="animated fadeOutRight"
    >
        <p v-show="flag">受影响的元素</p>
    </transition>

</div>
<script>


    let vm = new Vue({
        el: "#app",
        data() {
            return {
                flag: false
            }
        },


    });


</script>
</body>
</html>